//
//  UIColor+TYTheme.h
//  TYOEMConfig
//
//  Created by 盲僧 on 2020/7/8.
//
#import <UIKit/UIKit.h>
@interface UIColor (TYTheme)
- (UIColor *)N1;
- (UIColor *)N2;
- (UIColor *)N3;
- (UIColor *)N4;
- (UIColor *)N5;
- (UIColor *)N6;
- (UIColor *)N7;
- (UIColor *)N8;

/// 当前颜色的置灰色
- (UIColor *)ty_DisableColor;
/// 当前颜色的高亮颜色,使用场景：如按钮的点击时背景颜色需要高亮
- (UIColor *)ty_highlyColor;
/// 该颜色是否属于深色
- (NSNumber *)ty_isDarkcolor;
/// 添加叠加色到当前颜色上
/// @param forwordColor 所要叠加的颜色
- (UIColor *)ty_colorWithForwordColor:(UIColor *)forwordColor;

+ (UIColor *)interpolationColorFrom:(UIColor *)fromColor to:(UIColor *)toColor percent:(CGFloat)percent;
/// 根据hex的string值生成颜色
/// @param hexColor hex值支持ARGB和RGB
+ (UIColor *)ty_themeColorWithHexString:(NSString *)hexColor;
/// 根据hex的string值生成颜色
/// @param hexColor hex值支持RGB
/// @param alpha 透明度
+ (UIColor *)ty_themeColorWithHexString:(NSString *)hexColor alpha:(CGFloat)alpha;

/// 更改颜色 alpha 值
/// @param alpha 透明度
- (UIColor *)ty_themeColorWithAlpha:(CGFloat)alpha;

/// 颜色转换成 UIImage
- (UIImage *)ty_convertToImage;

@end

